package cn.edu.tju.elm.repository;

import cn.edu.tju.elm.model.DeliveryAddress;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface AddressRepository extends JpaRepository<DeliveryAddress, Long> {
        public DeliveryAddress findByAddress(String address);
        // 根据用户ID查询所有地址
      List<DeliveryAddress> findDeliveryAddressByCustomerId(Long customerId);


}
